<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Window页面</title>
    <script>
        document.write("<p>浏览器：<br />");
        document.write(navigator.appName + "</p>");
        document.write("<p>浏览器版本：<br />");
        document.write(navigator.appVersion + "</p>");
        document.write("<p>浏览器的用户代理报头：<br />");
        document.write(navigator.userAgent + "</p>");
        document.write("<p>平台：<br />");
        document.write(navigator.platform + "</p>");
        setTimeout(function() {
                window.history.go(-1);//后退一个页面
            },
            8000);
            
    </script>

</head>
<body>
    <button onclick="open_win()" style="height: 220px;width: 460px;margin-left: 750px;
			margin-top: 220px;font-size: 50px;">查看浏览器信息<tton>
			<script>
				var newWin,stop;
				function open_win() {
					newWin = setTimeout(function open_win() {//调用设定函数
						xjm = window.open("task 1.html",  "width:450px,height:450px,top=0,left=0");
					}, 1000);//打开页面一秒
					stop = setTimeout(
						function() {
							if(xjm && !xjm.closed) { }
							location.href = "task 1.html";
					}, 3000);//关闭页面3秒
				}
            </script>
</body>
</html>